package com.yjd.comm.regist.enums;



/** 
 * 
 * Function: 注册渠道来源. <br/> 
 * date: 2015-5-12 下午3:58:42 <br/> 
 * @author SongJian 491835898@qq.com
 */  
public enum RegistChannelEnum {

	DEFAULT("web","网站"),
	APP_ANDROID("app_android","AndroidClient"),
	APP_IOS("app_ios","IosClient"),
	APP_WAP("app_wap","WapClient")
	;
	
	private String code;
	private String description;
	private RegistChannelEnum(String code, String description) {
		this.code = code;
		this.description = description;
	}
	public String getCode() {
		return code;
	}
	public String getDescription() {
		return description;
	}
	public static RegistChannelEnum get(String value) {
		value = value.toLowerCase();
		RegistChannelEnum[] enums = RegistChannelEnum.values();
		for (RegistChannelEnum enum1 : enums) {
			if (enum1.getCode().equals(value)) {
				return enum1;
			}
		}
		return RegistChannelEnum.DEFAULT;
	}
	
}
